package labox.innovation.gameserver.network.clientpackets;

import labox.innovation.gameserver.network.serverpackets.GUIList;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public final class RankListRequest extends L2GameClientPacket {
	private static final String _C__36_RANKLISTREQUEST = "[C] 36 RankListRequest";

	private static final Logger _log = LoggerFactory.getLogger(Logout.class.getName());
	
	private String rankList;

	@Override
	protected void readImpl() {
		
	}

	@Override
	protected void runImpl() {
		StringBuilder sb = new StringBuilder();
		sb.append("<form nm='system' tl='排行榜'>\n");
		sb.append("    <tag>\n");
		sb.append("	   <a cmd='' val='system'>系统</a>\n");
		sb.append("	   <a cmd='' val='friend'>好友</a>\n");
		sb.append("    </tag>\n");
		sb.append("	<tb ln='n' h='94%' bt='1'>\n");
		sb.append("		<tb ln='l' w='90%'>\n");
		sb.append("		<tr h='5'><td></td></tr>\n");
		sb.append("	    <tr><td><a pl='min' cmd='send:55:b1'>全服等级榜</a></td></tr>\n");
		sb.append("		<tr><td><a pl='min' cmd='send:55:b2'>全服技能榜</a></td></tr>\n");
		sb.append("		<tr><td><a pl='min' cmd='send:55:b3'>全服财富榜</a></td></tr>\n");
		sb.append("		<tr><td><a pl='min' cmd='' oc='b0()'>职业等级榜</a></td></tr>\n");
		sb.append("		<tr><td><a pl='min' cmd='' oc='b2()'>职业技能榜</a></td></tr>\n");
		sb.append("		<tr><td><a pl='min' cmd='' oc='b1()'>职业财富榜</a></td></tr>\n");
		sb.append("		</tb>\n");
		sb.append("	</tb>\n");
		sb.append("	<form nm='friend' >\n");
		sb.append("	    <tb ln='n' h='86%' bt='1'>\n");
		sb.append("			<tb ln='l' w='90%'>\n");
		sb.append("			<tr h='5'><td></td></tr>\n");
		sb.append("				<tr h='5'><td></td></tr>\n");
		sb.append("			    <tr><td><a pl='min' cmd='send:55:b22'>好友等级榜</a></td></tr>\n");
		sb.append("				<tr><td><a pl='min' cmd='send:55:b23'>好友技能榜</a></td></tr>\n");
		sb.append("				<tr><td><a pl='min' cmd='send:55:b24'>好友财富榜</a></td></tr>\n");
		sb.append("			</tb>\n");
		sb.append("	    </tb>\n");
		sb.append("    </form>\n");
		sb.append("   <!---->\n");
		sb.append("   <s>\n");
		sb.append("   sub b0()\n");
		sb.append("   popForm(\"system\",\"worklevel\")\n");
		sb.append("   ret\n");
		sb.append("   sub b1()\n");
		sb.append("   popForm(\"system\",\"workmoeny\")\n");
		sb.append("   ret\n");
		sb.append("   sub b2()\n");
		sb.append("   popForm(\"system\",\"workskill\")\n");
		sb.append("   ret\n");
		sb.append("   </s> \n");
		sb.append("   <form nm='worklevel'tl='职业等级排行'>\n");
		sb.append("	    <tb ln='n' h='94%' bt='1'>\n");
		sb.append("			<tb ln='l' w='90%'>\n");
		sb.append("			<tr h='3'><td></td></tr>\n");
		sb.append("			    <tr><td><a pl='min' cmd='send:55:b4'>金刚等级榜</a></td></tr>\n");
		sb.append("			    <tr><td><a pl='min' cmd='send:55:b5'>御剑等级榜</a></td></tr>\n");
		sb.append("				<tr><td><a pl='min' cmd='send:55:b6'>降雷等级榜</a></td></tr>\n");
		sb.append("				<tr><td><a pl='min' cmd='send:55:b7'>罗刹等级榜</a></td></tr>\n");
		sb.append("				<tr><td><a pl='min' cmd='send:55:b8'>幽冥等级榜</a></td></tr>\n");
		sb.append("				<tr><td><a pl='min' cmd='send:55:b9'>勾魂等级榜</a></td></tr>\n");
		sb.append("			</tb>\n");
		sb.append("	    </tb>\n");
		sb.append("    </form>\n");
		sb.append("   <form nm='workmoeny' tl='职业财富排行榜'>\n");
		sb.append("	    <tb ln='n' h='94%' bt='1'>\n");
		sb.append("			<tb ln='l' w='90%'>\n");
		sb.append("			<tr h='3'><td></td></tr>\n");
		sb.append("			    <tr><td><a pl='min' cmd='send:55:b16'>金刚财富榜</a></td></tr>\n");
		sb.append("			    <tr><td><a pl='min' cmd='send:55:b17'>御剑财富榜</a></td></tr>\n");
		sb.append("				<tr><td><a pl='min' cmd='send:55:b18'>降雷财富榜</a></td></tr>\n");
		sb.append("				<tr><td><a pl='min' cmd='send:55:b19'>罗刹财富榜</a></td></tr>\n");
		sb.append("				<tr><td><a pl='min' cmd='send:55:b20'>幽冥财富榜</a></td></tr>\n");
		sb.append("				<tr><td><a pl='min' cmd='send:55:b21'>勾魂财富榜</a></td></tr>\n");
		sb.append("			</tb>\n");
		sb.append("	    </tb>\n");
		sb.append("    </form>\n");
		sb.append("    <form nm='workskill' tl='职业技能排行榜'>\n");
		sb.append("	    <tb ln='n' h='94%' bt='1'>\n");
		sb.append("			<tb ln='l' w='90%'>\n");
		sb.append("			<tr h='3'><td></td></tr>\n");
		sb.append("			    <tr><td><a pl='min' cmd='send:55:b10'>金刚技能榜</a></td></tr>\n");
		sb.append("			    <tr><td><a pl='min' cmd='send:55:b11'>御剑技能榜</a></td></tr>\n");
		sb.append("				<tr><td><a pl='min' cmd='send:55:b12'>降雷技能榜</a></td></tr>\n");
		sb.append("				<tr><td><a pl='min' cmd='send:55:b13'>罗刹技能榜</a></td></tr>\n");
		sb.append("				<tr><td><a pl='min' cmd='send:55:b14'>幽冥技能榜</a></td></tr>\n");
		sb.append("				<tr><td><a pl='min' cmd='send:55:b15'>勾魂技能榜</a></td></tr>\n");
		sb.append("			</tb>\n");
		sb.append("	    </tb>\n");
		sb.append("    </form>\n");
		sb.append("</form>\n");
		
		rankList = sb.toString();
		getClient().getActiveChar().sendPacket(new GUIList(rankList));
	}
	
	@Override
	public String getType() {
		return _C__36_RANKLISTREQUEST;
	}

}
